package com.alogic.textfilter.impl;

import com.alogic.textfilter.TextFilter;
import com.anysoft.util.Properties;
import org.apache.commons.lang3.StringEscapeUtils;
import org.w3c.dom.Element;

/**
 * html转义
 * @since 1.6.13.10 [20200827 duanyy]
 *
 * @version 1.6.13.22 [20201026 duanyy] <br>
 * - 增加缓存filter结果的功能
 */
public class HtmlEscape extends TextFilter.Escape {
    @Override
    protected String escape(String value) {
        return StringEscapeUtils.escapeHtml4(value);
    }

    @Override
    protected String unescape(String value) {
        return StringEscapeUtils.unescapeHtml4(value);
    }

}
